package com.epam.dynamiccl;


/**
 * Simple Runner
 * 
 * @author Iurii Miedviediev
 * @version 1.0 Build 27.07.2014
 */
public class Test {
	
	private static final String testClass = "com.epam.dynamiccl.dynamiccontent.DynamicContentImpl";

	public static void main(String[] args) throws Exception {
		
		DynamicContent dc;
		
		while (true) {
			DynamicClassLoader loader = new DynamicClassLoader(Test.class.getClassLoader());
			Class<?> clazz = Class.forName(testClass, true, loader);
			dc = (DynamicContent) clazz.newInstance();
			System.out.println(dc);
			Thread.sleep(2000);
		}
	}
}